package com.shibo.generator.util;

import java.util.Map;

/*
* 替换模板信息
* */
public class ReplaceUtlis {

    public static String replace(String tem, Map<String, Object> map) {
        if (map != null && map.size() > 0) {
            for (Map.Entry<String, Object> entry : map.entrySet()) {
                tem = tem.replace("${" + entry.getKey() + "}", String.valueOf(entry.getValue()));
            }
        }
        return tem;
    }

}
